<template>
  <div>
    <h1>{{ ttest}}</h1>
    <button @click="gettest">点击</button>


  </div>
</template>

<script>
import {ref} from 'vue'
import myaxios from "@/http/axios";
export default {
  setup() {
    let ttest = ref()
    const gettest=()=>{
      myaxios('test','get').then(res=>{
        ttest.value = res.list
      })
    }
    return {
      ttest,
      gettest
    }
  }

}
</script>

<style scoped>

</style>